Aller au contenu principal

Withdrawal by ID

Example of withdrawal transaction by ID:

To initialize a request with confirmation:

curl --location 'https://heth.me/api/v1/transactions' \
--header 'Content-Type: application/json' \
--header 'x-api-key: 440944de-e5a4-6aab-9c57-3bf2e7282c64' \
--data '{
"params": {
"amount": 10000000000000000000,
"currency": "USDT",
"env": "prod",
"type": "payout",
"route": "hot_hot_ETH",
"money_storage": {
"wallet_id": "9D0089A4A8024E4724D03D2E572EB53DDE850B99",
"network": "ETH",
"type": "p2p_proxy",
"currency": "USDT"
},
"description": "Withdrawal",
"txid": "hot_hot_ETH"
}
}'
FieldDescriptionTypeExample
amountTransaction amount (in minor units)Number10000000000000000000
currencyTransaction currency (default USDT)StringUSDT
envTransaction environment (default prod)Stringprod
routeTransaction route (must match route mapping)Stringhot_hot_ETH
typeTransaction type (in this case payout)Stringpayout
money_storageRecipient data objectObject
>wallet_idRecipient wallet addressString9D0089A4A8024E4724D03D2E572EB53DDE850B99
>networkBlockchain network (TRX or ETH)StringETH
>typeTransaction type for wallets (here p2p_proxy)Stringp2p_proxy
>currencyRecipient currency (default USDT)StringUSDT
descriptionTransaction descriptionStringWithdrawal
txidTransaction identifierStringhot-hot_test